# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'qtwarning.ui'
#
# Created: Sun Apr 23 02:09:56 2006
#      by: The PyQt User Interface Compiler (pyuic) 3.15.1
#
# WARNING! All changes made in this file will be lost!


from qt import *


class QtWarning(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("QtWarning")

        self.setSizeGripEnabled(1)

        QtWarningLayout = QVBoxLayout(self,11,6,"QtWarningLayout")

        self.textEdit = QTextEdit(self,"textEdit")
        self.textEdit.setWordWrap(QTextEdit.WidgetWidth)
        self.textEdit.setReadOnly(1)
        QtWarningLayout.addWidget(self.textEdit)

        layout7 = QHBoxLayout(None,0,6,"layout7")

        self.warningCancel = QPushButton(self,"warningCancel")
        self.warningCancel.setAutoDefault(1)
        layout7.addWidget(self.warningCancel)
        Horizontal_Spacing2 = QSpacerItem(180,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout7.addItem(Horizontal_Spacing2)

        self.warningOk = QPushButton(self,"warningOk")
        self.warningOk.setAutoDefault(1)
        self.warningOk.setDefault(1)
        layout7.addWidget(self.warningOk)
        QtWarningLayout.addLayout(layout7)

        self.languageChange()

        self.resize(QSize(631,374).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.warningCancel,SIGNAL("clicked()"),self.reject)


    def languageChange(self):
        self.setCaption(self.__tr("Warning!!!"))
        self.textEdit.setText(self.__tr("Some of the packages you have chosen to install may be illegal in your country. By clicking the 'OK' button and proceeding with the installation, you absolve the EasyUbuntu team of any legal implications.\n"
"           \n"
"We know that you want to get to playing your music, video etc rightaway, but please do consider using Free formats (https://wiki.ubuntu.com/FreeFormats) for distribution of your own work. Support open formats whenever you can!\n"
"\n"
"Here is the list of the items you have selected that may be illegal in your country:\n"
"\n"
"\n"
""))
        self.warningCancel.setText(self.__tr("&Cancel"))
        self.warningCancel.setAccel(QString.null)
        self.warningOk.setText(self.__tr("&OK"))
        self.warningOk.setAccel(QString.null)


    def __tr(self,s,c = None):
        return qApp.translate("QtWarning",s,c)
